#字典取值
d={10:'lion',20:'tiger',30:'bear'}

#字典的取值
print(d[10])
print(d.get(10))

#字典的遍历
for k in d:
 print(k,d[k])

print()

for k,v in d.items():
    print(k,v)
print()

for element in d.items(): 
    print(element)
   